require(['config'], function() {
	require(['zepto', 'swiper', 'swiper.animate', 'common','backtop','change'], function($,swiper,animate,common,backtop,change) {
		$(function() {
			var mySwiper = new Swiper('.swiper-container', {
				loop: true,
				// 如果需要分页器
				pagination: '.swiper-pagination',
				autoplay: 5000,
				onInit: function(swiper) { //Swiper2.x的初始化是onFirstInit
					swiperAnimateCache(swiper); //隐藏动画元素 
					swiperAnimate(swiper); //初始化完成开始动画
				},
				onSlideChangeEnd: function(swiper) {
					swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
				}
			})
			var mySwiper2 = new Swiper('.swiper-container2', {
				// 如果需要分页器
				pagination: '.swiper-pagination2',
				paginationType: 'fraction',
			})
		})
	});
});